]> dgit.raspbian.org Git - gnome-shell.git/commit
shellEntry: Show popup menu at cursor position when pressing menu key
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 8 Dec 2019 20:56:46 +0000 (21:56 +0100)
committerJonas Dreßler <verdre@v0yd.nl>
Wed, 15 Jan 2020 17:27:31 +0000 (18:27 +0100)
commitd27638e37e17435709840e0927616d335b0bdb59
tree8d0f128a2d47ff0215f5bfe8a51e2a91762a6b20
parente4cb1a8f4bce7d5dae23a5f09895280811477751
shellEntry: Show popup menu at cursor position when pressing menu key

When pressing the menu key to show the popupMenu inside a ShellEntry,
the menu is currently aligned with the end of the entered text, this
causes a bug in case the text is overflowing the width of the entry: The
menu will be shown outside of the entry field, because it's aligned with
the (invisible) end of the text.

Fix that by simply aligning the popup menu with the cursor of the entry,
which is a behavior that makes sense when pressing the menu-key anyway.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/934
js/ui/shellEntry.js